<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 100px;
            margin: 30px auto;
        }
        
        .box1 {
            background-color: pink;
            transition: all 1s;
        }
        
        .box1:hover {
            transform: skewX(50deg);
        }
        
        .box2 {
            background-color: crimson;
            transition: all 1s;
        }
        
        .box2:hover {
            transform: skewY(50deg);
        }
        
        .box3 {
            background-color: blue;
            transition: all 1s;
        }
        
        .box3:hover {
            transform: skew(40deg, 50deg);
        }
    </style>
</head>

<body>
    <div class="box box1">x轴倾斜</div>
    <div class="box box2">y轴倾斜</div>
    <div class="box box3"></div>
</body>

</html>